<template>
  <div>登录页</div>
  <Button type="primary" @click="login">登录</Button>
</template>

<script lang="ts">
import { Button } from "ant-design-vue";

import { userLogin } from "@/services/user";

export default {
  components: { Button },

  setup() {
    const login = () => {
      userLogin({
        account: "admin",
        password: "admin",
      }).then((res) => {
        console.log(res);
      });
    };

    return {
      login,
    };
  },
};
</script>